<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <style>
        .chart svg {
            width: auto;
            height: auto;
        }
    </style>
</head>

<body>

    <div class="chart">
        <svg>
            <rect x='0' y='0' width='20' height='20' fill='red'></rect>
        </svg>
    </div>

</body>

</html>